home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / AppleSearch / Macintosh / ASClient Update SDK / UpdateSDK / Headers / ASUpdateConstants.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-19  |  3.7 KB  |  88 lines  |  [TEXT/MPS ]

  1.  
  2. /*===============================================================================================================
  3.  
  4.         ASUpdateConstants.h
  5.     
  6.         Copyright Apple Computer, Inc. 1992-1993
  7.         All rights reserved
  8.  
  9. ===============================================================================================================*/
  10.  
  11. #ifndef __ASUPDATECONSTANTS__
  12. #define __ASUPDATECONSTANTS__
  13.  
  14. //_______________________________________________________________________________________________________________
  15. //____________________________________________________ INCLUDES _________________________________________________
  16. //_______________________________________________________________________________________________________________
  17.  
  18. #ifndef __ASUPDATETYPES__
  19. #include "ASUpdateTypes.h"
  20. #endif                                                            // __NPTYPES__
  21.  
  22. //_______________________________________________________________________________________________________________
  23. //____________________________________________________ CONSTANTS ________________________________________________
  24. //_______________________________________________________________________________________________________________
  25. // General constants
  26.  
  27. const OSType        kAppleSearchUpdateFileType            = 'BGNP';        // file type for AppleSearch compatible update
  28. const OSType        kAppleSearchPartialUpdateFileType    = 'BGPP';        // file type for update that are being built
  29.  
  30. //_______________________________________________________________________________________________________________
  31. // Constants for newspaper types
  32.  
  33. const ASUType kAppleSearchTextUpdate                 = 'NP01';
  34. const ASUType kAppleSearchStyledUpdate                 = 'NP02';
  35. const ASUType kAppleSearchMultimediaUpdate             = 'NP03';
  36.  
  37. //_______________________________________________________________________________________________________________
  38. // Constants for article types
  39.  
  40. const ASUArticleType kTextArticleItem                = 'TEXT';
  41. const ASUArticleType kHighlightedTextArticleItem    = 'HTXT';
  42. const ASUArticleType kStyledTextArticleItem            = 'STXT';
  43. const ASUArticleType kFixedWidthTextArticleItem        = 'FWTX';
  44. const ASUArticleType kFixedHeightTextArticleItem    = 'FHTX';
  45. const ASUArticleType kFixedSizeTextArticleItem        = 'FSTX';
  46. const ASUArticleType kPICTArticleItem                = 'PICT';
  47. const ASUArticleType kTIFFArticleItem                = 'TIFF';
  48. const ASUArticleType kAcrobatArticleItem            = 'ACBT';
  49. const ASUArticleType kAnnotatedArticleItem            = 'ANTD';
  50. const ASUArticleType kQuickTimeArticleItem            = 'QTIM';
  51. const ASUArticleType kSoundArticleItem                = 'SND ';
  52. const ASUArticleType kCompoundArticleItem            = 'CMPD';
  53.  
  54. //_______________________________________________________________________________________________________________
  55. // Constants for data containers
  56.  
  57. const ASUDCType        ASUDCTypeArticle            = 'ARTL';
  58. const ASUDCType        ASUDCTypeFileHeader            = 'FHDR';
  59. const ASUDCType        ASUDCTypeArticleListHeader    = 'ALHD';
  60. const ASUDCType        ASUDCTypeFree                = 'FREE';
  61. const ASUDCType        ASUDCTypeCompressed            = 'COMP';
  62. const ASUDCType        ASUDCTypeWildcard            = '****';
  63.  
  64.  
  65. //_______________________________________________________________________________________________________________
  66. // Misc.
  67.  
  68. const long            kVersion1                    = 1;
  69. const ASUDataSize    kVersion1FileHeaderSize        = 16;
  70. const ASUDataSize    kVersion1DCHeaderSize        = 16;
  71.  
  72.  
  73. //_______________________________________________________________________________________________________________
  74. // Error codes
  75.  
  76. const OSErr    kIncompleteUpdateFileErr    = 2201;
  77. const OSErr    kArticleIndexRangeErr        = 2301;
  78.  
  79. const OSErr    kDataTooLargeErr            = 2401;
  80.  
  81. const OSErr    kDataContainerNotFoundErr    = 2501;
  82. const OSErr    kOutOfMemoryErr                = 2001;
  83. const OSErr    kNilPtrErr                    = 2002;
  84.  
  85. //_______________________________________________________________________________________________________________
  86.  
  87.  
  88. #endif                                                            // __ASUPDATECONSTANTS__